<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%@ Import Namespace="CWB.Web.Mvc.Extensions" %>
<%@ OutputCache Duration="43200" VaryByParam="None" VaryByCustom="pageurl" Shared="true" %>

<%
    CWB.Web.Trading trading = new CWB.Web.SessionData().trading;
%>

<ul id="jsddm">
    <li>
		<a href="javascript:void(0);"><% =Resources.Text.MenuAnnouncement %></a>
        <ul>
            <li><a href="javascript:alert('Comeing Soon');"><% =Resources.Text.MenuAnnouncementList %></a></li>
            <li><a href="javascript:alert('Comeing Soon');"><% =Resources.Text.MenuAnnouncementCreate %></a></li>
        </ul>
    </li>
    <li>
		<a href="javascript:void(0);"><% =(trading.position < 2) ? Resources.Text.MenuAG : Resources.Text.MenuMEM %></a>
        <ul>
            <%
                if (trading.position < 2)
                {
                    %>
            <li><a href="<%= Url.CultureRoute(ViewData["_cul"].ToString(), "Agent", "Index") %>"><% =Resources.Text.MenuAGList%></a></li>
            <li><a href="<%= Url.CultureRoute(ViewData["_cul"].ToString(), "Agent", "Create") %>"><% =Resources.Text.MenuAGCreate%></a></li>
                    <%
                }
                else
                {
                    %>
            <li><a href="<%= Url.CultureRoute(ViewData["_cul"].ToString(), "Agent", "Index") %>"><% =Resources.Text.MenuMEMList%></a></li>
            <li><a href="<%= Url.CultureRoute(ViewData["_cul"].ToString(), "Agent", "Create") %>"><% =Resources.Text.MenuMEMCreate%></a></li>
                    <%
                }
            %>
        </ul>
    </li>
    <li>
		<a href="javascript:void(0);"><%=Resources.Text.MenuReport %></a>
        <ul>
            <li><a href="<%= Url.CultureRoute(ViewData["_cul"].ToString(), "Report", "RequestReport") %>"><%=Resources.Text.MenuReportRequest %></a></li>
            <li><a href="<%= Url.CultureRoute(ViewData["_cul"].ToString(), "Report", "GeneralReport") %>"><%=Resources.Text.MenuGeneralReport %></a></li>
            <li><a href="javascript:alert('Comeing Soon');">Report B</a></li>
        </ul>
    </li>
    <li>
        <a href="<%= Url.CultureRoute(ViewData["_cul"].ToString(), "Agent", "MySetting") %>"><% =Resources.Text.MenuMySetting %></a>
    </li>
</ul>
